// const Foo = { template: '<div>foo</div>' }
const Bar = {template: '<div>bar</div>'}
import Foo from 'all-medical-list.vue'

const routes = [
    {path: '/foo', component: Foo},
    {path: '/bar', component: Bar}
]
const router = new VueRouter({
    routes // (缩写) 相当于 routes: routes
})